const mongoose = require('mongoose');
mongoose.connect('mongodb://127.0.0.1/express-demo', {
  useNewUrlParser: true
});

const todoSchema = mongoose.Schema({
  name: {type: String}
})

const Todo = mongoose.model('Todo', todoSchema)

module.exports = Todo